package com.jf.readers.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jf.common.annotation.Excel;
import com.jf.common.core.domain.BaseEntity;

/**
 * 读者基本信息对象 readers
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
public class Readers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 读者ID */
    private Long readerId;

    /** 读者姓名 */
    @Excel(name = "读者姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 电子邮箱 */
    private String email;

    /** 联系地址 */
    @Excel(name = "联系地址")
    private String address;

    /** 注册日期 */
    private Date registerDate;

    /** 读者类型 */
    @Excel(name = "读者类型")
    private String readerType;

    /** 读者状态 */
    @Excel(name = "读者状态")
    private String status;

    /** 图书借阅记录信息 */
    private List<BorrowRecords> borrowRecordsList;

    public void setReaderId(Long readerId) 
    {
        this.readerId = readerId;
    }

    public Long getReaderId() 
    {
        return readerId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }

    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setRegisterDate(Date registerDate) 
    {
        this.registerDate = registerDate;
    }

    public Date getRegisterDate() 
    {
        return registerDate;
    }

    public void setReaderType(String readerType) 
    {
        this.readerType = readerType;
    }

    public String getReaderType() 
    {
        return readerType;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<BorrowRecords> getBorrowRecordsList()
    {
        return borrowRecordsList;
    }

    public void setBorrowRecordsList(List<BorrowRecords> borrowRecordsList)
    {
        this.borrowRecordsList = borrowRecordsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("readerId", getReaderId())
            .append("name", getName())
            .append("gender", getGender())
            .append("birthDate", getBirthDate())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("address", getAddress())
            .append("registerDate", getRegisterDate())
            .append("readerType", getReaderType())
            .append("status", getStatus())
            .append("borrowRecordsList", getBorrowRecordsList())
            .toString();
    }
}
